package com.dljd.javase.t7.example4;

class Demo {
    int x;
    int y;
    public Demo(int a,int b,int c,int d){
    }
    static{
        System.out.println("static-A");
    }
    public Demo(){
        System.out.println("HelloA");
    }
    {
        System.out.println("I'm A class");

    }


}
class DemoChild extends Demo{
    static{
        System.out.println("static-B");
    }

    {
        System.out.println("I'm B class");

    }
    public DemoChild(){
        super();
        System.out.println("HelloB");
    }

    public static void main(String[] args) {
        new DemoChild();
    }
}
